#!/bin/sh

cd ~

axel -n8 https://download.sublimetext.com/sublime-text_build-4143_amd64.deb

sudo dpkg -i ~/sublime-text_build-4143_amd64.deb

# 配置

echo "" > ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo "{" >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"font_size": 20,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"save_on_focus_lost": true,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"line_padding_bottom": 3,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"line_padding_top": 3,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"translate_tabs_to_spaces": true,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo '"tab_size": 4,' >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
echo "}" >> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
